function myScreen(){
    this.initialWidth=1280;
    this.initialHeight=768;

    this.getScreenSize=(screen)=>{
        var h=screen.getPrimaryDisplay().workAreaSize.height;
        var w=screen.getPrimaryDisplay().workAreaSize.width;
        var newH=Math.round(h*0.8);
        var bl=this.initialHeight/newH;
        var newW=Math.round(this.initialWidth/bl);
        if(newW>w){
            newW=Math.round(w*0.8);
            bl=this.initialWidth/newW;
            newH=Math.round(this.initialHeight/bl);
        }
        return {
            // h:768,
            // w:1280
            h:newH,
            w:newW
        }
    }
}
``


exports.myScreen=new myScreen();